import request from './request'
import qs from 'qs'

// banner轮播图接口
export const BannerListApi = () => request.get('/banner')

//热门推荐接口/personalized
export const HotListApi = () => request.get('/personalized')

//首页新碟上架/album/newest
export const NewalbumApi = () => request.get('/album/newest')

//榜单排行 /toplist/detail
export const BangdanApi = () => request.get('/toplist/detail')

//热门主播/dj/toplist/popular
export const HostZhuboListApi = () => request.get('/dj/toplist/popular')

//短信验证/captcha/verify?phone=13xxx&captcha=1597
export const CodeApi = (params) => request.post('/sendSMS', qs.stringify(params))

//手机号验证login/cellphone?phone=xxx&password=yyy
export const PhoneApi = (params) => request.post('/login/cellphone', qs.stringify(params))